<template>
  <el-row class="tac">
    <el-col :span="12">
      <h5 class="mb-2">测试</h5>
      <el-menu
        default-active="2"
        class="el-menu-vertical-demo"
        @open="handleOpen"
        @close="handleClose"
      >
        <el-sub-menu index="1">
          <template #title>
            <el-icon><location /></el-icon>
            <span>接口测试</span>
          </template>
            <el-menu-item index="1-1">item one</el-menu-item>
            <el-menu-item index="1-2">item two</el-menu-item>
          
        </el-sub-menu>
  
      
      </el-menu>
    </el-col>
  </el-row>
</template>

<script lang="ts" setup>
import {

  Menu as IconMenu,
  Location,

} from '@element-plus/icons-vue'
const handleOpen = (key: string, keyPath: string[]) => {
  console.log(key, keyPath)
}
const handleClose = (key: string, keyPath: string[]) => {
  console.log(key, keyPath)
}
</script>